package com.hyl.entity;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Description TODO
 * @Author hyl
 * @Date 2023/4/26 10:01
 **/
public class UserTest {
	public static void main(String[] args) {
//		User user = new User();
//		user.setUsername("小红");
//		user.setAge(18);
		//user.show();

		ApplicationContext cnt = new ClassPathXmlApplicationContext("Spring-application.xml");
		User userBean = (User) cnt.getBean("userTmp2");
		userBean.show("aa");
	}
}
